/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package jcode.hibernate.model;

import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
 
/**
 *
 * @author maddog
 */
@Entity
@Table(name = "EMPLOYEE")
public class Employee {
 
    @Id
    @GeneratedValue
    private Long id;
    @Column(name = "firstname")
    private String firstname;
    @Column(name = "lastname")
    private String lastname;
    @Column(name = "birth_date")
    private Date birthDate;
    @Column(name = "cell_phone")
    private String cellphone;
 
    public Employee() {
    }
 
    public Employee(String firstname, String lastname, Date birthdate, String phone) {
        this.firstname = firstname;
        this.lastname = lastname;
        this.birthDate = birthdate;
        this.cellphone = phone;
 
    }
 
    public Long getId() {
        return id;
    }
 
    public String getFirstname() {
        return firstname;
    }
 
    public String getLastname() {
        return lastname;
    }
 
    public Date getBirthDate() {
        return birthDate;
    }
 
    public String getCellphone() {
        return cellphone;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }
 
    public void setLastname(String lastname) {
        this.lastname = lastname;
    }
 
    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }
 
    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }
}